<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="wrap">
        <ul id="list"></ul>
    </div>
</body>

<script>
    {
        let list = document.querySelector("#list");
        list.innerHtml = [...(".".repeat(100))].map((item,index)=>`<li>这是第${index}个li</li>`).join("");
    }
    {
        let list = document.querySelector("#list");
        let startPoint = 0;
        let startEl = 0;
        let y = 0;
        list.addEventListener("touchstart",(e)=>{
            let touch = e.changedTouches[0];
            startPoint = touch.clientY;
            startEl = y;
        })
        list.addEventListener("touchmove",(e)=>{
            let touch = e.changedTouches[0];
            let nowPoint = touch.clientY; 
            y = startEl + (nowPoint - startPoint);
        })
    }
</script>
</html>